package a.i;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;

public class kb
{
  public static int a;
  
  public static URL a(String paramString1, String paramString2, String paramString3)
  {
    boolean bool = p.b;
    URL localURL = null;
    if ((bool) || (paramString1 != null)) {
      localURL = e(paramString1);
    }
    if (!bool) {
      if ((localURL == null) && ((bool) || (paramString2 != null))) {
        localURL = a(paramString2);
      }
    }
    if (!bool) {
      if ((localURL == null) && ((bool) || (paramString3 != null))) {
        localURL = b(paramString3);
      }
    }
    return localURL;
  }
  
  public static URL a(String paramString)
  {
    try
    {
      String str = System.getProperty("user.home");
      return d(str + File.separatorChar + paramString);
    }
    catch (SecurityException localSecurityException) {}
    return null;
  }
  
  public static URL b(String paramString)
  {
    return new kb().getClass().getClassLoader().getResource(paramString);
  }
  
  public static URL c(String paramString)
  {
    try
    {
      return new URL(paramString);
    }
    catch (MalformedURLException localMalformedURLException) {}
    return null;
  }
  
  public static URL d(String paramString)
  {
    try
    {
      File localFile = new File(paramString);
      if ((p.b) || (localFile.canRead())) {
        return localFile.toURL();
      }
    }
    catch (MalformedURLException localMalformedURLException) {}
    return null;
  }
  
  public static URL e(String paramString)
  {
    try
    {
      String str = System.getProperty(paramString);
      if ((p.b) || (str != null)) {
        return a(str, false);
      }
    }
    catch (SecurityException localSecurityException) {}
    return null;
  }
  
  public static URL f(String paramString)
  {
    return a(paramString, true);
  }
  
  private static URL a(String paramString, boolean paramBoolean)
  {
    boolean bool = p.b;
    URL localURL = null;
    if (paramBoolean) {
      localURL = e(paramString);
    }
    if (!bool) {
      if (localURL == null) {
        localURL = a(paramString);
      }
    }
    if (!bool) {
      if (localURL == null) {
        localURL = b(paramString);
      }
    }
    if (!bool) {
      if (localURL == null) {
        localURL = d(paramString);
      }
    }
    if (!bool) {
      if (localURL == null) {
        localURL = c(paramString);
      }
    }
    return localURL;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.i.kb
 * JD-Core Version:    0.7.0.1
 */